package com.test;

import java.io.IOException;
import java.io.Reader;

import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.io.Resources;
import org.apache.ibatis.session.SqlSession;
import org.apache.ibatis.session.SqlSessionFactory;
import org.apache.ibatis.session.SqlSessionFactoryBuilder;

public class InitMyBatis {

	@Select("")
	public static void main(String[] args) {
		String res="";
		try {
			Reader reader=Resources.getResourceAsReader(res);
			SqlSessionFactory sessionFactory=new SqlSessionFactoryBuilder().build(reader);
			SqlSession sqlSession=sessionFactory.openSession();
			sqlSession.selectList("", 102);
			Object su=sqlSession.getMapper(InitMyBatis.class);
			System.out.println();
		} catch (IOException e) {
			e.printStackTrace();
		}
		
	}
}
